public class Calculator {
    public boolean Check(int a, int b, int c) {
        if (a + b > c && a + c > b && b + c > a) {
            System.out.println("是三角形");
            return true;
        } else {
            System.out.println("不是三角形");
            return false;
        }
    }

    public static void main(String[] args) {
        Calculator calculator = new Calculator();
        calculator.Check(1,2,3);
    }
}
